<?php
$cs = Yii::app()->getClientScript();
$cs->registerScriptFile(Yii::app()->request->baseUrl.'/assets/common/js/user/changePassword.js', CClientScript::POS_END);
$cs->registerScript("changePasswordInit","$(function(){Change_Password.init('".Yii::app()->language."')});", CClientScript::POS_READY);
Yii::app()->clientScript->scriptMap['jquery.js'] = false;
Yii::app()->clientScript->scriptMap['jquery.min.js'] = false;
?>

    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">
            <?php
            echo Yii::t("messages", "Change Password")
            ?>
        </h4>
    </div>
    <div class="modal-body">
        <?php $form=$this->beginWidget('CActiveForm', array(
            'id'=>'change-password-form',
            "htmlOptions" => array(),
        )); ?>

        <div class="form-group">
            <?php echo $form->labelEx($model,'currentPassword'); ?>
            <?php echo $form->passwordField($model,'currentPassword', array("class"=>"form-control","autofocus"=>"true", "placeholder"=>Yii::t("messages","Current Password"))); ?>
        </div>
        <div class="form-group">
            <?php echo $form->labelEx($model,'newPassword'); ?>
            <?php echo $form->passwordField($model,'newPassword', array("class"=>"form-control", "placeholder"=>Yii::t("messages","New Password"))); ?>
        </div>
        <div class="form-group">
            <?php echo $form->labelEx($model,'retypeNewPassword'); ?>
            <?php echo $form->passwordField($model,'retypeNewPassword', array("class"=>"form-control", "placeholder"=>Yii::t("messages","Retype New Password"))); ?>
        </div>
        <?php echo CHtml::htmlButton('<i class="fa fa-sign-in"></i> Change', array( 'type' => "submit", "class" => "btn btn-danger")); ?>

        <?php $this->endWidget();?>


    </div>
